<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>css内容和边框</title>
		<style type="text/css">
			.c2{
				height: 200px;
				width: 200px;
				border: 10px groove red;
				padding: 10px;
				overflow: auto;
			}
		</style>
	</head>
	<body>
		<div class="c2">
			<img src="../images/kongzi.jpg"/>
		</div>
		<div class="c2" style="box-sizing: border-box;">
			<img src="../images/kongzi.jpg"/>
		</div>
	</body>
</html>